package com.correo.vista.client.windows.componentes.menu;

import javax.swing.JDesktopPane;
import javax.swing.JInternalFrame;
import javax.swing.JMenuItem;

public class ItemMenuDinamicos extends JMenuItem{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JInternalFrame		internalFrame;
	private JDesktopPane		desktopPane;
	
	public ItemMenuDinamicos(JInternalFrame internal, JDesktopPane desktop){
		this.internalFrame = internal;
		this.desktopPane = desktop;
		setText(internal.getTitle());
	}

	
	public JDesktopPane getDesktopPane() {
		return desktopPane;
	}

	public void setDesktopPane(JDesktopPane desktopPane) {
		this.desktopPane = desktopPane;
	}

	public JInternalFrame getInternalFrame() {
		return internalFrame;
	}

	public void setInternalFrame(JInternalFrame internalFrame) {
		this.internalFrame = internalFrame;
	}

}
